package cn.com.hhrcw.message;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Get;

import javax.validation.Valid;

/**
 * http消息发送服务
 *
 * @author lixingxing
 */
@BaseRequest(baseURL = "${host}", interceptor = MessageInterceptor.class)
public interface IMessageService {

    /**
     * 发送邮件
     *
     * @param email
     */
    @Get(url = "/uop/v1/orgs/", contentType = "application/json", async = true)
    void sendEmail(@Body @Valid Object email);

}
